passing array to function in c with example